/*
 * Shapes.h
 *
 *  Created on: 2020年12月12日
 *      Author: san
 */

#ifndef SHAPES_H_
#define SHAPES_H_

#include <string>

class Shapes {
public:
	Shapes();
	Shapes(std::string s): name(s) { }
	virtual ~Shapes();

	std::string getName() { return name; }
	virtual double area() const = 0;  // 纯虚函数这里写0

protected:
	std::string name = "Shapes";
};

#endif /* SHAPES_H_ */
